package com.xiyu.service.vo.infra.data.dictType;

import com.xiyu.service.vo.infra.data.baseVO.InfraDictTypeBase;
import com.xiyu.service.vo.infra.data.baseVO.InfraDictDataBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;

import jakarta.validation.Valid;
import org.springframework.format.annotation.DateTimeFormat;
    import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
    import java.time.LocalDateTime;

@Schema(description = "查询字典类型详细")
@Data
@AllArgsConstructor
public class DictTypeGetOutput extends InfraDictTypeBase {

    @Schema(description = "字典类型编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private UUID id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "字典数据", example = "字典数据")
    @Valid
    private List<data> datas;

    @Schema(description = "字典数据")
    @Data
    public static class data extends InfraDictDataBase {

        @Schema(description = "dataID")
        private UUID id;
    }
}